package com.hqyj.finance.server.bill.financebill.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.hqyj.finance.server.bill.financebill.entity.UserExpenses;
import com.hqyj.finance.server.bill.financebill.views.UserExpenseCatalogMonthsCharts;
import com.hqyj.finance.server.bill.financebill.views.UserExpenseMonthsCharts;
import com.hqyj.finance.server.bill.financebill.views.UserExpenseMonthsView;

import java.util.List;

public interface UserExpensesService extends IService<UserExpenses> {

    //新增用户支出信息
    public boolean saveUserExpensesInfo(UserExpenses userExpenses) throws Exception;

    //查询用户的支出信息
    public List<UserExpenses> queryUserExpensesInfoByUid(Integer uid) throws Exception;

    public Page<UserExpenses> queryUserExpensePagerByUid(Integer uid,Integer currentPageNum) throws Exception;

    public UserExpenses queryUserExpenseInfoByExpensesId(Integer id);

    public UserExpenseMonthsView queryUserExpenseMonthsViewByUid(Integer uid,String realName,String month,Integer currentPageNum);

    public String exportUserExpenseMonthViewAsExcel(UserExpenseMonthsView userExpenseMonthsView) throws Exception;

    public UserExpenseMonthsCharts queryUserExpenseMonthsChartsByUid(Integer uid,String realName,String month);

    public UserExpenseCatalogMonthsCharts queryUserExpenseCatalogMonthsCharts(Integer uid,String realName,String month);

}
